Skip to content

Treat CGKA ops as pending until all cited certificates are in doc's closure - #329

Merged
jtfmumm merged 2 commits into
mainfrom
jtfm/cite-only-document-closure
Nov 4, 2026
Merged

jtfmumm merged 2 commits into
mainfrom
jtfm/cite-only-document-closure

Conversation

@jtfmumm

@jtfmumm jtfmumm commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

It was possible to cite the wrong things and force an op to be authorized as a result. This ensures all must be in the doc's closure locally.

@jtfmumm jtfmumm added the bug Something isn't working label Oct 29, 2026
@jtfmumm
jtfmumm requested review from alexjg, ept, expede and pvh as code owners October 29, 2026 17:14

@expede expede left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems straightforward 👍

Nit from the bot:

The new check makes record_citations partly redundant. closure returns certificates from the store, so if every citation is in the closure, the store has all of them, and record_citations can no longer return false. Two consequences:

  • The current order (record_citations(op) || cites_only_closure(op)) first writes the foreign certificate into the shared certificates.cited table, then parks the op as pending forever.
  • Checking the closure first fixes that. record_citations then only fills the cache, and its Pending branch can't be reached.

Not a blocker, but figured I'd mention it

@jtfmumm
jtfmumm merged commit 5723820 into main Nov 4, 2026
17 checks passed
@jtfmumm
jtfmumm deleted the jtfm/cite-only-document-closure branch November 4, 2026 13:15
@jtfmumm
jtfmumm restored the jtfm/cite-only-document-closure branch November 4, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants